<#import "/jblog.ftl" as jblog/>
<@jblog.head/>
<body>
	<div id="banner">
		<h1>HexCode.cn | CodingCrafts.com</h1>
		<h2>一个全栈技术工匠的地下车间</h2>
	</div>
	<a href="${rc.contextPath}/quite">退出</a>
	<a href="${rc.contextPath}/article/add">添加文章</a>
	<div id="pagers" style="margin-top:10px;"><span>共${pageArticles.totalPages}页：</span>
	<#list pageArticles.urls as url>		
		<#if url[1] = pageArticles.currentPage>
			<span>${url[0]}</span>
		<#else>
			<span><a href="${rc.contextPath}/article/articles?page=${url[1]}">${url[0]}</a></span>
		</#if>
	</#list>
	</div>
	<div class="articles">
	<#list pageArticles.data as article>
		<h1><a href="${rc.contextPath}/article/${article.articleId}/show">${article.title}</a>&nbsp;
		<span class="date">${article.date}&nbsp;--<a href="${rc.contextPath}/article/${article.articleId}/delete">删除</a>&nbsp;<a href="${rc.contextPath}/article/${article.articleId}/update">修改</a>
		</span>
	</#list>
	</div>
	<@jblog.footer/>
</body>
<@jblog.bannerJs />
</html>